Win 32 Operations Library Objects
Load the Direct.Win32Ops.Library.dll library from within the Designer to use the functions below.
The Screen Element parameter must be able to hold an actual Windows window handle.
Function / Event |
Return Value |
Description |
Syntax |
Add Window Style |
Boolean |
Adds the specified window style to the specified screen element. |
Add <Style> To <Window> |
Bring To Front |
--- |
Brings the window with the specified handle to the front. |
Bring to Front By <Handle> |
Check if Windows Style Exists |
Boolean |
Checks if the specified window contains the specified window style, and, if it does, returns true if it does. For example, to check whether the style minimize is present in the given handle, specify 536870912, which is the decimal value for the style WS_MINIMIZE. To find the decimal values for all the window styles find win32con.py online and look for the styles starting with WS_. |
Check if current window <handle> style has the given window style <windowStyletoCheck> present |
Close Window |
--- |
Closes the specified window. |
Close <Window> |
Enable Window |
--- |
Sets the specified window's user input state. Enable equals false, meaning no mouse or keyboard. |
Enable Window <hWnd> User Input To State <bEnable> |
Find a Child Window Handle |
Number |
Uses the parent window and class name (of the child window) and returns the handle of the child window (the first child window with the specified class name in the parent window). |
Find Child Window Of <parent handle> With Class Name <className> |
FindIEWindowByTitle |
Number |
Returns the window handle of an IE window with text. |
<windowText> |
FindIEWindows |
List of handles |
Returns a list of IE window handles which meet the window title search criteria. |
<windowTitles> |
FindWindowHandle |
Number |
Returns the window handle of a window with the specified class name and specified text. |
Window Handle Of A Window With Class Name <className> And Text <windowText> |
Get Acc Children Text |
List |
Uses the handle of the parent and the specified client role, and returns the accessibility text that complies. |
Return List Of Accessibility Children Text Of <handle> Within <clientRole> Control |
Get Acc Name |
Text |
Returns the name value of the accessibility object retrieved from the specified handle. |
Return Name Value Of Accessibility Object Retrieved From <handle> |
Get Acc Visibility Boolean |
Boolean |
Returns the visibility value of the accessibility object retrieved with the specified handle. |
Return Visibility Value Of Accessibility Object Retrieved From <handle> |
Get Bottom Vertical Extent |
Number |
Returns the vertical extent of the bottom of the specified window relative to the top of the specified base window. |
Vertical Extent Of Bottom <hwnd_relative> Relative To <hwnd_base> |
Get CPU Usage Of A Process |
Number |
Returns the CPU usage of a process according to the specified process and user names. |
Get <Process> CPU Usage Of <User> |
Get CPU Usage Of A Process By ID |
Number |
Returns the CPU usage of a process according to the specified process number. |
Get <Process> CPU Usage |
Get Left Horizontal Extent |
Number |
Returns the horizontal extent of the left of the specified window relative to the specified base window. |
Horizontal Extent Of Left <hwnd_relative> Relative To <hwnd_base> |
Get Parent Window |
Number |
Returns the parent window of the specified window. |
Get Parent Handle Window Of <handle> |
Get Right Horizontal Extent |
Number |
Returns the horizontal extent of the right of the specified window relative to the specified base window. |
Horizontal Extent Of Right <hwnd_relative> Relative To <hwnd_base> |
Get Top Vertical Extent |
Number |
Returns the vertical extent of the top of the specified window relative to the specified base window. |
Vertical Extent of Top <hwnd_relative> Relative To <hwnd_base> |
Text Get Window Text |
Text |
Returns the text from the specified window. Get Text From <Window> |
Get Text From <Window> |
Handle Of Window In Focus |
Number |
Retrieves the handle of the current window in focus. |
Handle Of Window In Focus |
Hold Special Keys |
--- |
Holds the specified keys. |
See Description column. |
Is Valid Windows Handle |
Boolean |
Returns true if the specified window handle is valid. |
Is Valid Window <handle> |
Maximize Window |
--- |
Maximizes the specified screen element. |
Maximize <Window handle> |
Minimize Window |
--- |
Minimizes the specified screen element. |
Minimize <Window handle> |
Post Message |
--- |
Posts the specified message, along with the specified parameters to the specified screen element. The Screen Element parameter must be able to hold an actual Windows window handle. |
Post Message <Message> With <wParam> And <lParam> To <Screen Element> |
Post Message Strings |
--- |
Posts the specified message, along with the specified textual parameters to the specified screen element. The Screen Element parameter must be able to hold an actual Windows window handle. |
Post Message Strings <Message> With <wParam> And <lParam> To <Screen Element> |
Post Message to Handle |
--- |
Posts the specified message, along with the specified parameters to the specified window's handle. |
Post Message <Message> With <wParam> And <lParam> To <window handle> |
Press Keyboard |
--- |
Presses the specified keyboard key. |
See Description column. |
Release Special Keys |
--- |
Releases the specified keys. |
See Description column. |
Remove Window Style |
Boolean |
Removes the specified style from the specified screen element. |
Remove <Style> From <Window> |
Restore Window |
--- |
Restores the specified screen element. |
Restore <Window handle> |
Send Key To Window |
--- |
Sends the specified key combination to the specified screen element. |
See Description column. |
Send Message |
--- |
Sends the specified message, along with the specified parameters to the specified screen element The Screen Element parameter must be able to hold an actual Windows window handle. |
Send Message <Message> With <wParam> And <lParam> To <Screen Element> |
Send Message to Handle |
--- |
Sends the specified message, along with the specified parameters to the specified window handle. |
Send Message <Message> With <wParam> And <lParam> To <window handle> |
Send String To Handle |
--- |
Sends the specified string to the specified window handle. |
Send <String> To <Window handle> |
Send String To Window |
--- |
Posts the specified text to the specified screen element. |
Send <String> To <Window> |
Send Text to Window Handle |
--- |
Sends the specified text to the specified window handle. |
Send <Text> To <Handle> |
Set Window Text |
--- |
Sets the specified text of the specified screen element. |
Send <Text> Of <Window> |
Show Window |
--- |
Sets the specified window's show state. |
Show Window <hWnd> With The State <commandShow> |
Sleep |
--- |
Halts the processing of the Real-Time Client for the specified duration. |
Sleep For <Milliseconds> Milliseconds |
Take Screenshot |
Text |
Takes a screenshot of the screen and saves it in the specified directory. This action fails if there are no write permissions to the specified directory. When this action succeeds, the return value contains the saved full file path. In case of failure, it is empty and an error appears in the log. |
Take Screenshot <targetdirectory> |